import axios from "axios";
import { hotelDetailApi } from '../../api/hotel'
export default {
    namespaced: true,
    state: {
        hotelDetailData: []
    },

    mutations: {
      setHotelDetail(state,data){
        state.hotelDetailData = data
      }
        
    },
    actions: {
        async requestData(context, id) {
            // console.log(id);
            // console.log(2223333);
            const data = await hotelDetailApi({
                id
            })
            console.log(data.data.list);
            context.commit("setHotelDetail",data.data.list);
        }
    }
}